#ifndef _LED_DRV_WS2812B_H_
#define _LED_DRV_WS2812B_H_

#include "led_driver.h"

typedef struct led_drv_ws2812b
{
    led_driver_t drv;    //LED驱动层接口

    //添加 WS2812B 灯珠某些特定参数；
    unsigned char old_led_brightness[LED_MAX_NUM];    //关灯前的亮度参数
    unsigned char led_brightness[LED_MAX_NUM];    //亮度参数
    rgbcw_t rgbcw_value[LED_MAX_NUM];    //rgbcw颜色值

    void (*flush_data)(struct led_drv_ws2812b *_this);    //刷新ws2812b灯珠数据
}led_drv_ws2812b_t;

//创建一个ws2812b驱动程序实例
led_drv_ws2812b_t *led_drv_ws2812b_create(void);

#endif

